<template>
    <div>
        <el-table :data="tableData" stripe style="width:100%;font-size: 13px;" 
         :header-cell-style="{ background: '#f2f2f2', fontWeight: 'normal', color: '#515a6e', height: '40px', textAlign: 'center' }"
                :cell-style="{ height: '40px', textAlign: 'center' }">
            <el-table-column prop="time" label="测量时间" width="140px">
                <span>2025/05/09 10:45</span>
            </el-table-column>
            <el-table-column :label=data_unit prop="data" width=90px>
            </el-table-column>
            <el-table-column label="评估" width="70px">
                <el-text type="success">正常</el-text>
            </el-table-column>
            <el-table-column label="数据来源" width="90px">用户数据</el-table-column>
            <el-table-column label="操作" width="120px">
                <template #default>
                    <el-button link type="primary" style="font-weight: 400;font-size: 13px;">编辑</el-button>
                    <el-button link type="danger" style="font-weight: 400;font-size: 13px;">删除</el-button>
                </template>
            </el-table-column>
        </el-table>
    </div>
</template>

<script setup>

const props= defineProps(['tableData','unit'])
const data_unit = '数值('+props.unit+")"


</script>'

<style lang="scss" scoped></style>